from snownlp import SnowNLP

s = SnowNLP('我爱自然语言处理')

print(s.sentiments)
print(s.words)

s_bad = SnowNLP('我不爱自然语言处理')
print(s_bad.sentiments)
print(s_bad.words)

good_taste = SnowNLP("这道菜太好吃了")
print(good_taste.sentiments)
print(good_taste.words)
print(good_taste.tags)
print(good_taste.summary(2))

bad_taste = SnowNLP("太难吃了")
print(bad_taste.sentiments)
print(bad_taste.words)
print(bad_taste.tags)
print(bad_taste.summary(2))